import request from '@/utils/request'

// 查询营业线施工列表
export function listSupervisor(query) {
  return request({
    url: '/system/supervisor/list',
    method: 'get',
    params: query
  })
}

// 查询营业线施工详细
export function getSupervisor(certificateId) {
  return request({
    url: '/system/supervisor/' + certificateId,
    method: 'get'
  })
}

// 新增营业线施工
export function addSupervisor(data) {
  return request({
    url: '/system/supervisor',
    method: 'post',
    data: data
  })
}

// 修改营业线施工
export function updateSupervisor(data) {
  return request({
    url: '/system/supervisor',
    method: 'put',
    data: data
  })
}

// 删除营业线施工
export function delSupervisor(certificateId) {
  return request({
    url: '/system/supervisor/' + certificateId,
    method: 'delete'
  })
}
